import { legacy_createStore as createStore, combineReducers, applyMiddleware, compose } from 'redux';

/** 中间件，做一些异步操作
 * redux-thunk、redux-promise、redux-sage
 * redux-devtools-extension
 * */
import { composeWithDevTools } from '@redux-devtools/extension';
import thunk from 'redux-thunk';

// 导入模块
import { Info } from './modules/userInfo.ts';
// 集合模块
const reducer = combineReducers({
	Info
});

// const store = createStore(reducer, compose(composeWithDevTools()));
const store = createStore(reducer);
// const store = createStore(InfoStore, composeWithDevTools());
export default store;
